<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<style type="text/css">
table{
	width: 800px;
	border-collapse: collapse;
}
td,th{
	padding: 8px 15px;
	text-align: center;
}

	.button1 {
 -webkit-transition-duration: 0.4s;
 transition-duration: 0.4s;
 padding: 13px 28px;
 text-align: center;
 background-color: white;
 color: black;
background: #ee0979; 
background: linear-gradient(to right, #ee0979, #ff6a00);
 border-radius:4px;
 }
 .button1:hover {
 background-color: #4CAF50;
 color: white;
 }


</style>
<button onclick="add()" class="button1">新增</button>
<table border="1">
	<tr>
		<th>序号</th>
		<th>学号</th>
		<th>姓名</th>
		<th colspan="3">操作</th>		
	</tr>
	<c:forEach items="${list}" var="stu">
		<tr>
			<td>${stu.id}</td>
			<td>${stu.stuNo }</td>
			<td>${stu.name }</td>
			<td><button onclick="xg(${stu.id})" class="button1">修改</button></td>
			<td><button onclick="dele(${stu.id})" class="button1">删除</button></td>
			<td><button onclick="reset(${stu.id})" class="button1">重置密码</button></td>
			<td></td>
			<td></td>
			<td></td>
		</tr>	
	</c:forEach>
</table>
